package net.scrumtool.technics;

import net.scrumtool.model.Collaborator;
import net.scrumtool.view.EditCollaboratorsProduct;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

public class LabelProviderEditAddCollaborators implements ITableLabelProvider {

	EditCollaboratorsProduct view;

	public LabelProviderEditAddCollaborators(EditCollaboratorsProduct view) {
		this.view = view;
	}

	@Override
	public void addListener(ILabelProviderListener arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isLabelProperty(Object arg0, String arg1) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void removeListener(ILabelProviderListener arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public Image getColumnImage(Object arg0, int arg1) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getColumnText(Object arg0, int arg1) {
		Collaborator collaborator = (Collaborator) arg0;
		String res = "";

		if (arg1 == 0) {
			res = collaborator.getFirstname() + " " + collaborator.getLastname();
		}

		/*
		 * if (arg1 == 1) { res = Combo combo = new Combo(view.getShell(),
		 * SWT.BORDER | SWT.SIMPLE); Role roles = (Role) DAO.getRole(); res =
		 * combo.add("" + roles.getName() + ""); }
		 */

		return res;
	}
}
